package com.abth.douyin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.abth.douyin.mapper.DouyinShopMapper;
import com.abth.douyin.domain.DouyinShop;
import com.abth.douyin.service.IDouyinShopService;

/**
 * 抖音门店Service业务层处理
 * 
 * @author abingtech
 * @date 2025-09-04
 */
@Service
public class DouyinShopServiceImpl implements IDouyinShopService 
{
    @Autowired
    private DouyinShopMapper douyinShopMapper;

    /**
     * 查询抖音门店
     * 
     * @param poiId 抖音门店主键
     * @return 抖音门店
     */
    @Override
    public DouyinShop selectDouyinShopByPoiId(String poiId)
    {
        return douyinShopMapper.selectDouyinShopByPoiId(poiId);
    }

    /**
     * 查询抖音门店列表
     * 
     * @param douyinShop 抖音门店
     * @return 抖音门店
     */
    @Override
    public List<DouyinShop> selectDouyinShopList(DouyinShop douyinShop)
    {
        return douyinShopMapper.selectDouyinShopList(douyinShop);
    }

    /**
     * 新增抖音门店
     * 
     * @param douyinShop 抖音门店
     * @return 结果
     */
    @Override
    public int insertDouyinShop(DouyinShop douyinShop)
    {
        return douyinShopMapper.insertDouyinShop(douyinShop);
    }

    /**
     * 修改抖音门店
     * 
     * @param douyinShop 抖音门店
     * @return 结果
     */
    @Override
    public int updateDouyinShop(DouyinShop douyinShop)
    {
        return douyinShopMapper.updateDouyinShop(douyinShop);
    }

    /**
     * 批量删除抖音门店
     * 
     * @param poiIds 需要删除的抖音门店主键
     * @return 结果
     */
    @Override
    public int deleteDouyinShopByPoiIds(String[] poiIds)
    {
        return douyinShopMapper.deleteDouyinShopByPoiIds(poiIds);
    }

    /**
     * 删除抖音门店信息
     * 
     * @param poiId 抖音门店主键
     * @return 结果
     */
    @Override
    public int deleteDouyinShopByPoiId(String poiId)
    {
        return douyinShopMapper.deleteDouyinShopByPoiId(poiId);
    }
}
